package com.lzy.system.fileManage;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * description: 文件上传配置 <br>
 * date: 2023/12/28 上午9:39 <br>
 * author: lcc <br>
 * version: 1.0 <br>
 */
@Data
@ConfigurationProperties(prefix = UploadFileProperties.PREFIX)
@Component
public class UploadFileProperties {
    public static final String PREFIX = "platform.upload-file";
    /**
     * 文件存储路径
     */
    private String path;
    /**
     * ftp类型 ftp/sftp
     */
    private String ftpType;
    /**
     * 是否开启ftp/sftp  true/false
     */
    private boolean ftp;
    /**
     * ftp/sftp ip地址
     */
    private String ftpIp;
    /**
     * ftp/sftp 端口
     */
    private int ftpPort;
    /**
     * ftp/sftp 用户
     */
    private String ftpUser;
    /**
     * ftp/sftp 密码
     */
    private String ftpPwd;
    /**
     * ftp/sftp 路径
     */
    private String ftpPath;
}
